i = 0
while i < 10 do
	mob = map_register_mob(map.id, "Poring " .. i, math.random(20,30), math.random(20,30), i+100, i+100)
	mob.onCharSight = function (char)
		vit = getChars(char, "stats.vit")
		amelog("Char's vit is " .. vit)
	end
	i = i + 1	
end

--map_register_npc(map.id, "Mr. NPC", 26, 27, 0)
--map_register_npc(map.id, "Mrs. NPCEE", 23, 23, 0)